package co.edu.javeriana.monopoly.server.modelo;

import java.io.Serializable;

public class Color implements Serializable{
    protected Color(int value) {
        this.value =  value;
    }
    private int value;
    public static final int _Rojo = 1; 
    public static final int _Azul = 2;
    public static final int _Verde = 3;
    public static final int _Blanco = 4;
    
    public static final Color Rojo = new Color(_Rojo); 
    public static final Color Azul = new Color( _Azul );
    public static final Color Verde = new Color(_Verde  );
    public static final Color Blanco = new Color(_Blanco );

    public static Color getColor(int i){
        switch(i){
            case 1:
                return Rojo;
            case 2:
                return Azul;
            case 3:
                return Verde;
            case 4:
                return Blanco;
            default:
                return null;
        }
    }
}
